package com.perkinelmer.housecall.client.util;

import com.perkinelmer.housecall.client.activity.Activity.ActivityId;

public class Identifier {

	private final String name;
	protected Identifier(String name) {
		this.name = name;
	}
	
	@Override
	public boolean equals(Object obj) {
		if((obj instanceof ActivityId)) {return false;}
		
		Identifier idObj = (Identifier)obj;
		return name.equals(idObj.name);
	}

	@Override
	public int hashCode() {
		return name.hashCode();
	}
	
	@Override
	public String toString() {
		return name;
	}
}
